$(document).ready(function() {
    let userId = $(".userid").val();
    $.ajax({
    	url:"/poj-java/selectAllUsertags",
    	type:"GET",
    	data:{
    		userId:userId
    	},
    	success:function(data){
    		console.log(data);
    		let usertagsDiv = $(".user-tags");
    		let tags = data.data;
    		for (var i = 0; i < tags.length; i++) {
				let tag = tags[i].tag;
				let spanStr = `<span class="tag">${tag}</span>`;
				usertagsDiv.append(spanStr);
			}
    	}
    })
});
